package com.vincent.dao;

import com.vincent.model.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("permissionMapper")
public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Permission> selectAll();

    Permission selectByName(@Param("name") String name);

    int deletePermission(@Param("id") Integer []id);

    List<String> selectPerNamesByAdminid(@Param("adminId") Integer adminId);
}